﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TimeTrak.BLL
{
    public class TimeRecord
    {

        public DateTime StartTime { get; set; }
        public DateTime EndTime { get; set; }
        public bool IsManualEdit { get; set; }

        public TimeRecord()
        {
        }

        public TimeRecord(DateTime startTime, DateTime endTime, bool isManualEdit)
        {
            StartTime = startTime;
            EndTime = endTime;
            IsManualEdit = isManualEdit;
        }

        public TimeSpan GetDuration()
        {
            return EndTime.Subtract(StartTime);
        }

    }
}
